#ifndef NETWORK_LIST_H
#define NETWORK_LIST_H

#include <Elementary.h>
#include <iostream>
#include <sstream>

#include "Network.h"
#include "popen_wrapper.h"
#include "ConnectWindow.h"

const char DEFAULT_NOTE[] = "Scanning for networks...";

int scan_cb(void* list);

class NetworkList
{
public:
	NetworkList(Evas_Object* parent, std::string note = DEFAULT_NOTE);
	~NetworkList() {};
	
	void Scan();
	void DoubleClick();
	void SetNote(const char* note);
private:
	void show_nets(Ecore_List* nets);
	
	Evas_Object *parent_win, *bg, *box, *lb, *list, *rescan_bt, *power_off_bt, *box2, *fr, *fr0;
	Ecore_List* my_nets;
};

#endif
